[MUSIC]
In the previous practice exercise you built a workflow using
the data scraping wizard. In this video you will
understand PDF extraction. So, let's get started. PDF or Portable Document Format
is one of the most reliable and popular file formats to store data. PDF extraction is the process
of extracting the raw data from PDF documents. PDF files can contain text, images, and
sometimes texts that are actually images. PDFs can be of two types,
the first is scanned PDF. These are PDF or print documents,
these are created when you scan pages from printed documents such as newspapers,
print journals, and others. The information stored in these
PDFs is image format only and generally cannot be searched or copied. [MUSIC] The second is native PDF. These PDF files are created from
documents stored in electronic forms such as Word, Excel,
InDesign, Illustrator, or any other software that generates reports,
spreadsheets, and layouts. The information stored in these PDFs
is in text and image format and can be searched or copied. Studio offers several activities
to extract data from PDFs. Before starting data extraction, you
must install the Ui Path PDF activities package on the system with the help of
the managed package section and studio. There are two activities for
extracting text from PDFs. Read PDF text and read PDF with OCR. The read PDF text activity reads all
characters from a specified PDF file and stores them in a string variable. It chooses the file to be read and outputs a text variable with
the contents of the file. The result can be saved as a text file and
displayed in a message box. Other string operations
can be used to modify or extract information out
of the generated text. The activity extracts or converts
only the text part of the document, and any images in
the document are ignored. The Read PDF with OCR Activity reads all
characters from a specified PDF file and stores it in a string variable
by using OCR technology. It uses optical character recognition
to scan the images inside the PDF document and
output all the text as a variable. Three, requires an OCR engine for
the scanning procedure. Studio comes with OCR engines from Google,
Microsoft, and Abby. An important property of
these activities is range, it specifies the range of
pages that you want to read. You can specify a single page,
a range of pages, or a complex range. The default value is all, only string
variables and strings are supported. Both of these read PDF activities
are self contained, that is they don't require other applications to be open so
they can run in the background. There are some other activities
related to PDFs in studio. The get PDF page count activity provides
the total number of pages in a PDF file. [MUSIC] The export PDF page as
image activity creates an image from a page in
a specified PDF file. The extract images from PDF
activity extracts images from a specified PDF file and
saves them in a folder. The extract PDF page range
activity extracts text from a specified range of pages
from a PDF document. The joint PDF files activity
joins multiple PDF files stored in an array of strings
into a single PDF file. The manage PDF password activity
manages the password of a specified PDF file in current
password details are known. In the next video you will see a
demonstration on how to extract text from a PDF file using the read
PDF text activity. I would encourage you to go
through the demonstration and attempt to repeat it on your own. So, that's it for this video,
thank you for watching.